package com.eling.elcms.travel.service.impl;

import com.eling.elcms.basedoc.model.Room;
import com.eling.elcms.core.service.impl.GenericManagerImpl;
import com.eling.elcms.travel.dao.IRoomDao;
import com.eling.elcms.travel.model.CheckIn;
import com.eling.elcms.travel.model.view.RoomdStatisticsView;
import com.eling.elcms.travel.service.IRoomdStatisticsManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomdStatisticsManagerImpl extends GenericManagerImpl<Room, Long> implements IRoomdStatisticsManager {
	
	IRoomDao roomDao;
	
	@Autowired
	public void setRoomDao(IRoomDao roomDao) {
		this.dao = roomDao;
		this.roomDao = roomDao;
		
	}
	
	@Override
	public List<RoomdStatisticsView> queryT(CheckIn cond){
		return roomDao.queryT(cond);
	}

}
